package com.neu.carbon.wms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neu.carbon.wms.mapper.TestTreeMapper;
import com.neu.carbon.wms.domain.TestTree;
import com.neu.carbon.wms.service.ITestTreeService;

/**
 * testTreeService业务层处理
 * 
 * @author neuedu
 * @date 2025-03-16
 */
@Service
public class TestTreeServiceImpl implements ITestTreeService 
{
    @Autowired
    private TestTreeMapper testTreeMapper;

    /**
     * 查询testTree
     * 
     * @param id testTreeID
     * @return testTree
     */
    @Override
    public TestTree selectTestTreeById(Long id)
    {
        return testTreeMapper.selectTestTreeById(id);
    }

    /**
     * 查询testTree列表
     * 
     * @param testTree testTree
     * @return testTree
     */
    @Override
    public List<TestTree> selectTestTreeList(TestTree testTree)
    {
        return testTreeMapper.selectTestTreeList(testTree);
    }

    /**
     * 新增testTree
     * 
     * @param testTree testTree
     * @return 结果
     */
    @Override
    public int insertTestTree(TestTree testTree)
    {
        return testTreeMapper.insertTestTree(testTree);
    }

    /**
     * 修改testTree
     * 
     * @param testTree testTree
     * @return 结果
     */
    @Override
    public int updateTestTree(TestTree testTree)
    {
        return testTreeMapper.updateTestTree(testTree);
    }

    /**
     * 批量删除testTree
     * 
     * @param ids 需要删除的testTreeID
     * @return 结果
     */
    @Override
    public int deleteTestTreeByIds(Long[] ids)
    {
        return testTreeMapper.deleteTestTreeByIds(ids);
    }

    /**
     * 删除testTree信息
     * 
     * @param id testTreeID
     * @return 结果
     */
    @Override
    public int deleteTestTreeById(Long id)
    {
        return testTreeMapper.deleteTestTreeById(id);
    }
}
